import request from '@/utils/request'
const api_name = '/serviceedu/edu-video'
export default {

  //添加小节
  addVideo(video) {
    return request({
      url:  `${api_name}/addVideo`,
      method: 'post',
      data: video
    })
  },
  //视频（小节）信息回显
  getVideoInfoById(videoId){
    return request(
      {
        url: '/eduvod/video/getVideoInfoById/'+videoId,
        method: 'get'
      }
    )
  },
  //删除小节
  deleteVideo(id) {
    return request({
      url:  `${api_name}/${id}`,
      method: 'delete'
    })
  },
  //删除视频
  deleteAliyunvod(id) {
    return request({
      url: '/eduvod/video/removeAlyVideo/'+id,
      method: 'delete'
    })
  }
}
